import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
   islogin:sessionStorage.getItem('islogin'),
   username:sessionStorage.getItem('username')
  },
  mutations: {
    loginok(state,loginname){
      state.islogin = true;
      state.username = loginname;
    }
  },
  actions: {
  },
  modules: {
  }
})
